package com.smartao.base.employee;

import java.util.List;

import com.smartao.core.dao.BaseDao;

public interface EmployeeDao extends BaseDao<Employee, Long> {
	
	/**
	 * 根据账号获取用户信息，需要加载角色和岗位信息
	 * @param account
	 * @return
	 */
	public Employee findByAccount(String account);

	public List<Employee> findByDepartment(Long id);
	
	public Long countByDepartment(Long departmentId);

	public List<Employee> findAll();

	public void updateAccount(Long employeeId, String account, String password);

	public List<Employee> findByIds(Long[] ids);
}
